import axios from 'axios'
import base from '@/utils/config/base'

export const Login = function(params) {
  return axios({
    url: base.loginProd + '/login.api',
    method: 'post',
    params: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export const adminmodify = function(params) {
  return axios({
    url: base.loginProd + '/adminmodify.php',
    method: 'get',
    params: params
  })
}

//打印 下载
export const prtsn = function(params) {
  return axios({
    url: base.loginProd + '/prtsn.api',
    method: 'post',
    params: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}